Staged Composition Synthesis

نویسندگان

  • Boris Düdder
  • Moritz Martens
  • Jakob Rehof
چکیده

A framework for composition synthesis is provided in which metalanguage combinators are supported and the execution of synthesized programs can be staged into composition-time code generation (stage 1) and run-time execution (stage 2). By extending composition synthesis to encompass both object language (L1) and metalanguage (L2) combinators, composition synthesis becomes a powerful and flexible framework for the generation of L1-program compositions. A system of modal intersection types is introduced into a combinatory composition language to control the distinction between L1and L2-combinators at the type level, thereby exposing the language distinction to composition synthesis. We provide a theory of correctness of the framework which ensures that generated compositions of component implementations are well typed and that their execution can be staged such that all metalanguage combinators can be computed away completely at stage 1, leaving only well typed L1-code for execution at stage 2. Furthermore, we report on experiments. Composition synthesis [Reh13] is based on the idea of using inhabitation in combinatory logic with intersection types [BCDC83] as a foundation for computing compositions from a repository of components. We can regard a combinatory type judgement Γ ⊢ e : τ as modeling the fact that combinatory expression e can be obtained by composition from a repository Γ of components which are exposed as combinator symbols and whose interfaces are exposed as combinator types enriched with intersection types that specify semantic properties of components. The decision problem of inhabitation, often indicated as Γ ⊢ ? : τ , is the question whether a combinatory expression e exists such that Γ ⊢ e : τ (such an expression e is called an inhabitant of τ ). An algorithm (or semi-algorithm) for solving the inhabitation problem searches for inhabitants and can be used to synthesize them. Under the propositions-as-types correspondence, inhabitation is the question of provability in a Hilbert-style presentation of a propositional logic, where Γ represents a propositional theory, τ represents a proposition to be proved, and e is a proof. Following [WY05], a level of semantic types is introduced to specify component interfaces and synthesis goals so as to direct synthesis by means of semantic concepts. Semantic types are not necessarily checked against component implementations (this is regarded as an orthogonal issue). In combinatory logic synthesis (CLS) [DMRU12, Reh13, DMR13] semantic types are represented by intersection types [BCDC83]. In addition to being inherently component-oriented, it is a possible advantage of the type-based approach of

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

A Theory of Staged Composition Synthesis ( Extended Version )

Composition synthesis is based on the idea of using inhabitation in combinatory logic with intersection types as a foundation for computing compositions from component repositories. Components implemented in a language L1 are exposed to composition synthesis in the form of typed combinator symbols. In practice, it is useful to augment the collection of components in the implementation language ...

متن کامل

Lovastatin production by Aspergillus terreus in a two-staged feeding operation

BACKGROUND: Lovastatin is known to inhibit its own synthesis in the fungus Aspergillus terreus. Therefore, the use of a fermentation strategy that continuously removes some of the lovastatin produced from the bioreactor can enhance its productivity. This paper reports on the effects of dilution rate and the composition of the feed medium on lovastatin production by A. terreus. RESULTS: The feed...

متن کامل

Type and Effect System for Multi-staged Exceptions

We present a type and effect system for a multi-staged language with exceptions. The proposed type and effect system checks if we safely synthesize complex controls with exceptions in multi-staged programming. The proposed exception constructs in multi-staged programming has no artificial restriction. Exception-raise and -handle expressions can appear in expressions of any stage, though they ar...

متن کامل

Two-staged Approach for Semantically Annotating and Brokering Tv-related Services Conference Item Two-staged Approach for Semantically Annotating and Brokering Tv-related Services

Nowadays, more and more distributed digital TV and TV-related resources are published on the Web, such as Electronic Personal TV Guide (EPG) data. To enable applications to access these resources easily, the TV resource data is commonly provided by Web service technologies. The huge variety of data related to the TV domain and the wide range of services that provide it, raises the need to have ...

متن کامل

Phoneme Recognition with Staged Neural Networks

This paper presents a staged series of artificial neural networks (ANNs) for phoneme recognition for text-to-speech applications. Contrary from much of the prior published literature this approach is not restricted to monosyllabic words or the pronunciation of single multi-syllabic words, but can readily be embodied in a program that allows for the reading of a complete text. Also, it does not ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2014